home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 1
/
Cream of the Crop 1.iso
/
UTILITY
/
FSRCH21.ARJ
/
FSRCH.DOC
next >
Wrap
Text File
|
1992-07-06
|
8KB
|
165 lines
FSRCH - FILE SEARCH UTILITY
version 2.1
Copyright (c) 1988-1992, Stan Leeson
All Rights Reserved
FSRCH is a text file search utility that allows you to search through a
collection of files for lines that contain a target string or for lines
that relate to a pair of target strings in a prescribed manner. It
provides you with a simple but powerful user interface to aid you in
locating text items quickly and easily.
Programmers often work with programs made up of a collection of source
language files. When the applications are large and complex, it is often
easy to misplace the definition of a variable, the source of a function,
calls to a given subroutine, etc. FSRCH can help you locate these items
quickly. Other users may want to find a given text string in a set of
ASCII documentation files, word processor files, or even executable
files. Again, FSRCH can easily do that for you.
FSRC is called from the command line with no parameters. The form of the
call is simply: FSRCH
The list of matches is written to "FSRCH.OUT" in the current
default directory.
Once FSRCH begins execution, it presents a form with 7 fields on the screen.
This form is used to control the type of search that is performed. Context
sensitive help can be obtained by highlighting the field of interest with
the cursor arrow keys on the numeric keypad and pressing the F1 key. You
may fill in the fields in order pressing ENTER or TAB to move from one field
to the next, or you may use the cursor arrow keys to move the highlighting
and fill in the fields in any order that you like. Once you have completely
specified the search that you would like performed, you indicate that the
parameters are complete by holding down the Control key (Ctrl) and pressing
he enter key. The individual fields are desrcribed below:
FIELD 1 - FILE PATTERN
The file pattern is used to indicate which files are to be
searched. It may contain a drive specification, a directory
specification, and a file naming pattern with wild card
characters. A typical pattern would be in the form:
\"*.C\" to indicate all files with a .C extension. A
full pattern could be \"B:\\DIREC\\MY*.XY*\" to indicate
all files in directory \\DIREC on drive B: with a name
that begins with MY and an extension that begins with
XY are to be searched.
FIELD 2 - OBJECT 1
The object strings are those items that are to be searched
for. The first object string is required and the second is
optional. If the second string is empty, the relationship
is ignored, and FSRCH simply searches for occurrences of the
first string. If both strings are specified, FSRCH finds text
lines with the proper relationship of the two strings."};
FIELD 3 - RELATION
This field tells how the two object strings are
related in text lines that are reported. Choices:
AND - Both object strings must appear
OR - Either object string must appear
NOT - The first string must appear and NOT the second
XOR - Either string may appear but not both
SOLO - Only the first is searched for
The relationships may be abbreviated to just the initial character.
If the relationship is omitted, it is assumed to be SOLO if the
second object string is NULL and AND if it is not.
FIELD 4 - OBJECT 2
The object strings are those items that are to be searched
for. The first object string is required and the second is
optional. If the second string is empty, the relationship
is ignored, and FSRCH simply searches for occurrences of the
first string. If both strings are specified, FSRCH finds text
lines with the proper relationship of the two strings."};
FIELD 5 - CASE SENSITIVE
This field should be filled with a Y or N to indicate whether
or not the search should be case sensitive. If this field is left
blank or set to N, upper case and lower case letters are considered
to be equivalent.
FIELD 6 - PAUSE
This field is set to Y or N to indicate whether FSRCH should
pause after each match that is found. If pause is selected, FSRCH
stops after each matching line and waits for you to press a key
before continuing.
FIELD 7 - SEVEN BITS
This field is set to Y or N to indicate whether FSRCH should
limit each character in the file to a 7-bit value. Masking the top
bit off allows FSRCH to accurately recognize text that has the
upper bit forced to be set.
As each search is done, the results are written to the indicated output
file and displayed on the screen. Optionally, FSRCH will pause after
each match and wait for you to confirm that it is to proceed. When the
search is complete, FSRCH will ask if you want to perform additional
searches or terminate. If you choose to change parameters and search
again, FSRCH displays the parameters used in the last search and allows
you to change any that might require change. Results of subsequent
searches are appended onto the output file produced by the intial search.
The search results file indicates which files were search, what the objects
of the search were, and which lines contained text that matched the search
criteria. If the file being searched is NOT a simple ASCII text file
(e.g. a word processor file or an EXE file) the line number assigned to
each match is a fairly arbitrary indication of the relative position in
the file. If the search file is simple ASCII text file, the line number
is correct.
This is a SHAREWARE product. It may be freely distributed for trial
use as long as it is not changed in any way. Shareware developers
do not receive any compensation from shareware distribution companies.
The only compensation that developers receive is from a portion of
the registration fee that users provide when they find the product
useful. It is important that you register the product if you are
going to use it. The registration process provides you with a license
to use the product on a single machine. Site licenses are always
available for companies that need to use multiple copies of the
program.
Stan Leeson
Leeson Software Services
P.O. Box 130672
Roseville, MN 55113-0006
NOTE TO SHAREWARE DISTRIBUTORS:
Leeson Software Services will gladly provide recognized shareware
distributors with personalized copies of the latest shareware version
of any of our software products. Typically this would consist a
modified registration form with the name and address of the shareware
distributor filled in. This information allows us to send current
copies of the software to distributors when there is an update. In
addition, we provide a $1.00 rebate to distributors for all but the first
registration received in a calendar quarter. So, it pays to have the
registrations traceable to you.
Individual registered users can receive the same $1.00 rebate. Just
request that a personalized Shareware version be sent with your
registered copy, and then distribute it to others who may be interested.
Rebates will not be provided for the first registration in a calendar
quarter. They will also not be provided to unregistered users who are
not recognized shareware distribution companies.